Hi, my self Ravi Vishwakarma. I have completed my studies at SPICBB Varanasi. now I completed MCA with 76% form Veer Bahadur Singh Purvanchal University Jaunpur. SWE @ MindStick | Software Engineer | Web Developer | .Net Developer | Web Developer | Backend Engineer | .NET Core Developer
JDK is the development platform, while JRE is for execution. JVM is the foundation, or the heart of the Java programming language, and ensures the program's Java source code will be platform-agnostic. JVM is included in both JDK and JRE—Java programs won't run without it.
JVM (Java Virtual Machine): JVM is an abstract computing machine that provides a runtime environment in which Java bytecode can be executed. It converts Java bytecode into machine-specific instructions that the underlying operating system and hardware can understand. JVM is responsible for memory management, garbage collection, and other runtime services.
JRE (Java Runtime Environment): JRE is a software package that includes JVM, libraries, and other components necessary for running Java applications, but it does not include development tools such as compilers and debuggers. It is what end-users need to run Java applications on their systems.
JDK (Java Development Kit): JDK is a full-featured software development kit that includes JRE, compilers (like Javac), debuggers, tools for bundling applications, and other development tools. Developers use JDK to write, compile, and debug Java applications. It essentially includes everything that JRE has, plus additional tools needed for development.
In summary:
JVM executes Java bytecode and provides runtime services.
JRE is a runtime environment that includes JVM and necessary libraries for running Java applications.
JDK is a development kit that includes JRE, development tools, and additional libraries for Java development.
Liked By
Write Answer
What is the difference between JDK, JRE, and JVM?
Join MindStick Community
You have need login or register for voting of answers or question.
Ravi Vishwakarma
17-Jul-2024JDK is the development platform, while JRE is for execution. JVM is the foundation, or the heart of the Java programming language, and ensures the program's Java source code will be platform-agnostic. JVM is included in both JDK and JRE—Java programs won't run without it.
Understanding the differences between JDK, JRE, and JVM is fundamental to Java development:
JVM (Java Virtual Machine): JVM is an abstract computing machine that provides a runtime environment in which Java bytecode can be executed. It converts Java bytecode into machine-specific instructions that the underlying operating system and hardware can understand. JVM is responsible for memory management, garbage collection, and other runtime services.
JRE (Java Runtime Environment): JRE is a software package that includes JVM, libraries, and other components necessary for running Java applications, but it does not include development tools such as compilers and debuggers. It is what end-users need to run Java applications on their systems.
JDK (Java Development Kit): JDK is a full-featured software development kit that includes JRE, compilers (like Javac), debuggers, tools for bundling applications, and other development tools. Developers use JDK to write, compile, and debug Java applications. It essentially includes everything that JRE has, plus additional tools needed for development.
In summary: